import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/admin/login',
    method: 'post',
    data
  })
}

// export function loginOut() {
//   return request({
//     url: '/admin/login',
//     method: 'post'
//   })
// }
/* export function login(_userCode, _userPassword, _yzm) {
	return request({
		url: '/app/backendUser/login',
		method: 'get',
		params: {
			userCode: _userCode,
			userPassword: _userPassword,
			yzm: _yzm
		}
	})
} */

export function getInfo(id) {
  return request({
    url: '/admin/queryById/' + 1,
    method: 'get',
    params: {

    }
  })
}

export function logout() {
  return request({
    url: '/admin/logout',
    method: 'post'
  })
}
